import request from '@/utils/request'

/*  节水宣传教育活动台账表 */
// 列表查询
const waterSaveEducationList = function (params = {}) {
  return request({
    url: '/zy-api/api/swEducation/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addWaterSaveEducation = function (params = {}) {
  return request({
    url: '/zy-api/api/swEducation/add',
    method: 'post',
    data: params
  })
}

// 修改
const editWaterSaveEducation = function (params = {}) {
  return request({
    url: '/zy-api/api/swEducation/update',
    method: 'post',
    data: params
  })
}

// 删除
const delWaterSaveEducation = function (params = {}) {
  return request({
    url: '/zy-api/api/swEducation/delete',
    method: 'post',
    data: params
  })
}

// 审核
const auditWaterSaveEducation = function (params = {}) {
  return request({
    url: '/zy-api/api/swEducation/Review',
    method: 'post',
    data: params
  })
}

// 单位选项
const commonCompanyOptions = function (adCd) {
  return request({
    url: `/zy-api/api/swEducation/queryOrganizer/${adCd}`,
    method: 'get'
  })
}

export {
  waterSaveEducationList,
  addWaterSaveEducation,
  editWaterSaveEducation,
  delWaterSaveEducation,
  auditWaterSaveEducation,
  commonCompanyOptions
}